/*This file is auto generate by dlib/dbus/proxyer. Don't edit it*/

package pinyin

import "dlib/dbus"

type pysql struct {
	core *dbus.Object
}

func (obj pysql) get_pinyin(zhcn string) (pinyin string) {
	obj.core.Call("com.search.pysql.get_pinyin", 0, zhcn).Store(&pinyin)
	return
}

func (obj pysql) create_pinyin_trie(data string) (md5 string) {
	obj.core.Call("com.search.pysql.create_pinyin_trie", 0, data).Store(&md5)
	return
}

func (obj pysql) get_ret_via_keys(keys string, md5 string) (ret string) {
	obj.core.Call("com.search.pysql.get_ret_via_keys", 0, keys, md5).Store(&ret)
	return
}

func (obj pysql) finalize_data_trie(md5 string) {
	obj.core.Call("com.search.pysql.finalize_data_trie", 0, md5).Store()
	return
}

func (obj pysql) finalize_dbus_loop() {
	obj.core.Call("com.search.pysql.finalize_dbus_loop", 0).Store()
	return
}

func Getpysql(path string) *pysql {
	return &pysql{getBus().Object("com.search.pysql", dbus.ObjectPath(path))}
}
